package com.cmccgz.udacs_landlord_webapp.jpush;

import android.content.Context;

import com.cmccgz.baselibrary.base.BasePresenter;
import com.cmccgz.baselibrary.base.BaseView;
import com.cmccgz.udacs_landlord_webapp.bean.AccreditDetailBean;

import java.util.List;

/**
 * Created by June on 2017-8-18.
 */

public interface AccreditContract {

    public interface Presenter extends BasePresenter {
        void getAccreditDetail(String mobile, String requestId);
        void handleAccredit(String requestId, String isAgree, String reason, String deviceId, String startTime, String endTime, String times);
        void selectDevice(Context context, String[] devicesId, String[] devicesName);
        void selectDateTime(Context context, int type);
        void selectTimes(Context context);
        void refuseBox(Context context, String requestId);
        void selectDefaultTime();
    }

    interface View extends BaseView<Presenter> {
        void showAccreditInfo(String name, String mobile, String requestTime, String deviceName, String reason, List<AccreditDetailBean.DevicesBean> deviceList);
        void requestFail(String message);
        void handleSuccess();
        void handleFail();
        void wasHandled();
        void setStartTime(String datetime);
        void setEndTime(String datetime);
        void setTimes(int times);
        void setDevice(String deviceId, String deviceName);
        void setDefaultTime(String startTime, String endTime);
        void showLoadingDialog();
    }
}
